home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / HyperCuber 2.0 / source / CPrefs.h < prev    next >
Encoding:
Text File  |  1993-08-27  |  660 b   |  28 lines  |  [TEXT/KAHL]

  1. //|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2. //| CPrefs.h
  3. //|
  4. //| This is the interface to the Preferences class.
  5. //|_________________________________________________________
  6.  
  7. #pragma once
  8. #include <CObject.h>
  9.  
  10. class CPrefs : public CObject
  11.     {
  12.     
  13.     Str255    filename;                //  Name of preferences file
  14.     short    size;                    //  Size of preferences structure
  15.     short    current_version;        //  Version number of current preferences
  16.     
  17.     virtual short    *GetPrefsPointer(void);
  18.     virtual void    Update(void);
  19.     
  20.   public:
  21.  
  22.     void            IPrefs(Str255 the_filename, short prefs_size, short version);
  23.     virtual void    SetDefaults(void);
  24.     void            Load(void);
  25.     void            Save(void);
  26.  
  27.     };
  28.